import request from '@/utils/request'

//获取服务列表信息
export function listpublic() {
  return request({
    url: '/Service/list',
    method: 'get',
  })
}
//获取服务某个信息
export function listonepublic(sername) {
  return request({
    url: `/Service/list`,
    method: 'get',
    params:{sername}
  })
}
//服务的添加
export function addpublic(data) {
  return request({
    url: '/Service/add',
    method: 'post',
    data:data
  })
}
//服务的修改
export function updatepublic(data) {
  return request({
    url: '/Service/update',
    method: 'post',
    data:data
  })
}
//服务的删除
export function delpublic(uuid) {
  return request({
    url: `/Service/del?id=${uuid}`,
    method: 'get',
  })
}
//服务通过
export function apppublic(data) {
  return request({
    url: `/Service/app`,
    method: 'post',
    data:data
  })
}
//服务不通过
export function noapppublic(data) {
  return request({
    url: `/Service/noapp`,
    method: 'post',
    data:data
  })
}
